//
//  GoodsDetailHeaderView.h
//  FD
//
//  Created by xiaofang wang on 2018/12/7.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//200 + 50 + 20 + x

#import <UIKit/UIKit.h>
#import "HomeGoodsDetailHeaderModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface GoodsDetailHeaderView : UIView

//1.更行表头价格信息
//2.网页加载成功回调

/**1.根据模型 显示页面*/
@property (nonatomic,  strong) HomeGoodsDetailHeaderModel *model;

/**2.回调计算的高度*/
@property (nonatomic, copy) void(^goodsDetailHeaderViewHeightBlock) (CGFloat height);

/**
 3.加载网页内容

 @param contnetHtmlStr html 标签字符串传  { <div> <p>xxxx</p> <img>xxxx </div> }
 */
- (void)headerViewLoadwebviewWithContentHtmlStr:(NSString *)contnetHtmlStr;


/**
 4.更新商品总价
 @param sumCP 现总价:主食(staple) + 配料(ingredient)
 @param sumop 原总价:默认价格 + 配料累积和
 */
- (void)updateGoodsDetailHeaderViewSumCurrentPrice:(CGFloat)sumCP sumOriginPrice:(CGFloat)sumop;

@end

NS_ASSUME_NONNULL_END
